package ar.uba.fi.taller2.ftrs.query;

import java.util.ArrayList;
import ar.uba.fi.taller2.ftrs.parser.Parser;

public class Tindex {
	private static  Parser P;
	
	public Tindex(Object index){
		
	}
	
	public static ArrayList getDocumentList(String text){
		try{
			if ( text.split("[ \t\b\f\r]").length>1)
				 return getDocumentListFromPhrase(P.parsearConsulta(text));
			else 
				 return getDocumentListFromTerm(P.parsearConsulta(text));	
		}catch (Exception e) {
			e.printStackTrace();
		}
		return new ArrayList();
	}
	
	public static ArrayList getDocumentListFromTerm(String Term){
		return new ArrayList();
	}
	
	public static ArrayList getDocumentListFromPhrase(String Phrase){
		return new ArrayList();
	}
	
	public static ArrayList getDocumentList(){
		return new ArrayList();
	}
}
